package com.imooc.api.feign;

import com.imooc.grace.result.GraceJSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @version 1.0
 * @Author Mr.Yang
 * @Date 2024-08-29 16:25
 * @question:
 */

@FeignClient("user-service")
public interface UserInfoMicroServiceFeign {

    @PostMapping("/userinfo/getCountsByCompanyId")
    public GraceJSONResult getCountsByCompanyId(@RequestParam("companyId") String companyId);

    @PostMapping("/userinfo/bindingHRToCompany")
    public GraceJSONResult bindingHRToCompany(@RequestParam("hrUserId") String hrUserId, @RequestParam("realname") String realname, @RequestParam("companyId") String companyId);

    @PostMapping("/userinfo/get")
    public GraceJSONResult get(@RequestParam("userId") String userId);

    @PostMapping("/userinfo/changeUserToHR")
    public GraceJSONResult changeUserToHR(@RequestParam("hrUserId") String hrUserId);
}
